<%@ page import="aiball.Team" %>



<div class="fieldcontain ${hasErrors(bean: teamInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="team.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="32" pattern="${teamInstance.constraints.name.matches}" required="" value="${teamInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: teamInstance, field: 'logoURL', 'error')} ">
	<label for="logoURL">
		<g:message code="team.logoURL.label" default="Logo URL" />
		
	</label>
	<g:textField name="logoURL" value="${teamInstance?.logoURL}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: teamInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="team.description.label" default="Description" />
		
	</label>
	<g:textArea name="description" cols="40" rows="5" maxlength="512" value="${teamInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: teamInstance, field: 'warcry', 'error')} ">
	<label for="warcry">
		<g:message code="team.warcry.label" default="Warcry" />
		
	</label>
	<g:textField name="warcry" maxlength="64" value="${teamInstance?.warcry}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: teamInstance, field: 'model', 'error')} required">
	<label for="model">
		<g:message code="team.model.label" default="Farbe" />
		<span class="required-indicator">*</span>
	</label>
	<g:field id="colorPick" onChange="updateColor()" type="number" min="1" max="9" name="model" required="" value="${fieldValue(bean: teamInstance, field: 'model')}"/>
	<script type="text/javascript">
	updateColor();
	</script>
</div>

